﻿using ASmile.Com;
using ASmile.Com.DictCom;
using ASmile.DBModel;

namespace ASmile.Win.DaBLL
{
    public class DictHelperBLL : BLLBase, IDictHelperBLL
    {
        protected override string ControllerName => "SysManage/DictHelper";

        public ApiResultList<Dict_Area> GetAreas(ArgGetAreas arg)
        {
            return GetResultList<Dict_Area>(arg);
        }

        public ApiResult<string> GetBNoStr(int bNoType)
        {
            return GetResult<string>(bNoType);
        }

        public ApiResult<Dict_Common> GetDict(short typeNo, string code)
        {
            return GetResult<Dict_Common>(typeNo, code);
        }

        public ApiResultList<Dict_Common> GetDicts(ArgDictSearch arg)
        {
            return GetResultList<Dict_Common>(arg);
        }

        public ApiResult<RetEasyCode> GetEasyCode(string word)
        {
            return GetResult<RetEasyCode>(word);
        }
    }
}
